package com.tgpms.web.hongbo.dao;

import com.tgpms.web.hongbo.entity.Tube;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
* 表TUBE -> null 的基本功能实现
*
* @author WEIQUAN
* @createDate 2020/09/15
*/
public interface TubeMapper {
    /**
     * null  deleteByPrimaryKey 实现
     * 
     * @param id
     * @return null int
     * @author: WEIQUAN
     * @createDate: 2020-09-15 15:06:32
     */
    int deleteByPrimaryKey(String id);

    /**
     * 每次插入之前需要删除表数据
     * @return null
     */
    @Delete("delete from tube")
    int deleteTube();

    /**
     * null  insert 实现
     * 
     * @param record
     * @return null int
     * @author: WEIQUAN
     * @createDate: 2020-09-15 15:06:32
     */
    int insert(Tube record);

    /**
     * null  insertSelective 实现
     * 
     * @param record
     * @return null int
     * @author: WEIQUAN
     * @createDate: 2020-09-15 15:06:32
     */
    int insertSelective(Tube record);

    /**
     * null  selectByPrimaryKey 实现
     * 
     * @param id
     * @return null com.tgpms.web.hongbo.entity.Tube
     * @author: WEIQUAN
     * @createDate: 2020-09-15 15:06:32
     */
    Tube selectByPrimaryKey(String id);

    /**
     * null  updateByPrimaryKeySelective 实现
     * 
     * @param record
     * @return null int
     * @author: WEIQUAN
     * @createDate: 2020-09-15 15:06:32
     */
    int updateByPrimaryKeySelective(Tube record);

    /**
     * null  updateByPrimaryKey 实现
     * 
     * @param record
     * @return null int
     * @author: WEIQUAN
     * @createDate: 2020-09-15 15:06:32
     */
    int updateByPrimaryKey(Tube record);

    /**
     * 批量新增
     * @param list
     * @return int
     */
    int batchInsert(List<Tube> list);
}